class Person(object):
    def __init__(self,name,age):
        self.name = name
        self.age = age
        
    def say_hello(self):
        print("say hello from",self.name)
        
    def eat(self):
        print(self.name,"eat")
        
    def __str__(self) -> str:
        return "学生:{} age:{}".format(self.name,self.age)
    
class Student(Person):
    def __init__(self, name, age):
        super().__init__(name, age)
        
    def play_game(self):
        print("打游戏",self.name)
        
    def __str__(self) -> str:
        return "学生:{} age:{}".format(self.name,self.age)
    
st = Student("李华",12)
print(st)
st.say_hello()
st.play_game()